<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>vue</title>
        <!-- 引入vue文件-->
		<script src="http://static.runoob.com/assets/vue/1.0.11/vue.min.js"></script>
	</head>
	<body>
		<!--Math.random() :产生随机大于等于 0.0 且小于 1.0 的伪 double值 -->
		<div id="vue">
			<div v-if="Math.random() >5">
				随机数大于5
			</div>
			<div v-else>
				随机数小于或等于5
			</div>
		</div>
		<script>
			new Vue({
				el:'#vue',
			})
		</script>
	</body>
</html>
